package la.iok.hzsvn.lewin.movie.service;

import la.iok.hzsvn.lewin.movie.core.Token;
import la.iok.hzsvn.lewin.movie.entity.Movie;
import la.iok.hzsvn.lewin.movie.entity.UserFile;
import la.iok.hzsvn.lewin.mybatis.service.BaseService;
import la.iok.hzsvn.share.annotations.NotNull;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

public interface UserFileService extends BaseService<UserFile,Long> {

    @NotNull
    void uploadCover(Token token, Long id, MultipartFile file, String path);
    @NotNull
    void downloadFile(HttpServletResponse response, Long id, @NotNull String FileName);
    @NotNull
    void downloadFile(@NotNull Token token, @NotNull HttpServletResponse response, @NotNull Long id);
}
